import {request} from "../utils/request";

//商家入驻
export async function addShop(data) {
    const res = await request({
        url: '/business/addBusiness',
        method: 'POST',
        data
    }).catch()
    return res
}
//通过用户id获取商家信息
export async function getShop(data) {
    const res = await request({
        url: '/business/businessByUserId',
        method: 'GET',
        data
    }).catch()
    return res
}
